package com.example.warehouse.sys.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("sys_loginfo")
public class SysLogInfo implements Serializable {
    /**
     * 数据ID
     */
    @ExcelProperty(value = "数据ID",index = 0)
    @TableId(type = IdType.AUTO)
    private long id;

    /**
     * 登录者昵称
     */
    @ExcelProperty(value = "登录者昵称",index = 1)
    private String nickname;

    /**
     * 登录IP
     */
    @ExcelProperty(value = "登录IP",index = 2)
    private String loginIp;

    /**
     * 登录时间
     */
    @ExcelProperty(value = "登录时间",index = 3)
    private Date loginTime;

    /**
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 4)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 5)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
